package com.shequan.weibo.dao;

import java.util.List;
import com.shequan.shequan.bean.pojo.Shequan;
import com.shequan.weibo.bean.pojo.Topic;
/**
 * <P>
 * Copyright 2012 shequaner.
 * 
 * All Rights Reserved.
* @author mazg
 * @version 1.0, 2012-3-16
 * @see com.shequan.weibo.dao.TopicDAO 
 * @since 1.0
 */
public interface TopicDAO {
	int deleteByPrimaryKey(Integer topicId);

	int insert(Topic record);

	int insertSelective(Topic record);

	Topic selectByPrimaryKey(Integer topicId);

	int updateByPrimaryKeySelective(Topic record);

	int updateByPrimaryKey(Topic record);

	/**
	 *
	 *根据用户ID查询微博话题列表 
	 * @param shequanList
	 * @return
	 * @author mazg
	 * @date 2012-3-14 下午11:11:18
	 */
	List<Topic> queryTopicListByUserId(Integer userId);
		
	/**
	 * 根据社圈ID查询热门话题
	 * @param shequanId
	 * @return
	 * @author mazg
	 * @date 2012-3-24 下午12:13:09
	 */
	List<Topic> queryTopicListByShequanId(Integer shequanId);

}